package tank01;

/**
 * @Auther: xiaofei
 * @Date: 2021/7/1 - 07 - 01 - 18:49
 * @Description: tank01
 * @version: 1.0
 */
public class DefaultFireStrategy implements FireStrategy {

    public void fire(Tank t){
        int bX = t.x + Tank.WIDTH/2 - Bullet.WIDTH/2;
        int bY = t.y + Tank.HEIGHT/2 - Bullet.HEIGHT/2;

        new Bullet(bX,bY,t.dir,t.group,t.tf);
    }
}
